<template>
  <div class="gustroom">
    <div class="top">
      <p>北京</p>
      <h1>客房与套房</h1>
    </div>
    <div class="center">
      <div class="one">
        <div>
          <span>查看全部(9)</span>
          <span>客房(9)</span>
          <span>套房(9)</span>
        </div>
        <div>
          <ul
            style="
              background: #f5f5f5;
              margin-right: 40px;
              width: 70px;
              height: 80px;
            "
          >
            <el-button
              class="tubiao"
              type="text"
              icon="el-icon-reading"
            ></el-button>
            <span>分栏</span>
          </ul>
          <ul
            style="
              background: #f5f5f5;
              margin-right: 10px;
              width: 70px;
              height: 80px;
            "
          >
            <el-button
              class="tubiao"
              type="text"
              icon="el-icon-tickets"
            ></el-button>
            <span>分栏</span>
          </ul>
        </div>
      </div>

      <div class="two">
        <div>
          <h3>客房</h3>
          <p>
            格调非凡、设备齐全的客房提供舒适私密的居停空间，同时营造出宁静祥和的氛围，让您在入住期间尽情舒展身心。
          </p>
        </div>

        <!-- 需要循环的 -->
        <div class="item" v-for="(value, i) of items" :key="i">
          <!-- 轮播图 -->
          <!-- <style>position:absolute</style> -->
          <template>
            <swiper class="swiper" :options="swiperOption">
              <swiper-slide>
                <img src="img/guest/guest_03_03.jpg" alt="" />
              </swiper-slide>
              <swiper-slide>
                <img src="img/guest/guest_03_02.jpg" alt="" />
              </swiper-slide>
              <swiper-slide>
                <img src="img/guest/guest_03_01.jpg" alt="" />
              </swiper-slide>

              <div class="swiper-pagination" slot="pagination"></div>
              <!-- <div class="swiper-pagination"></div> -->
              <!-- 京东客服工号：336432 -->
            </swiper>
          </template>

          <!-- 轮播图下方内容 -->
          <div class="item_b">
            <div>
              <h3>{{ value.title }}</h3>
            </div>
            <div>
              <span class="el-icon-eleme"></span><span>{{ value.itema }}</span>
            </div>
            <div>
              <span class="el-icon-eleme"></span><span>{{ value.itemb }}</span>
            </div>
            <div>
              <span class="el-icon-eleme"></span><span>{{ value.itemc }}</span>
            </div>
            <div>
              <span @click="$router.push('/choose')">查看房价</span>
              <span
                @click="
                  $router.push({
                    name: 'clubroom',
                    params: { roomId: value.roomId },
                  })
                "
                >详情</span
              >
            </div>
          </div>
        </div>
      </div>
      <div style="overflow: hidden; width: 100%">
        <div class="two">
          <div>
            <h3>套房</h3>
            <p>
              这些宽敞的套房是商务差旅或家庭度假的理想之选，设有独立的就寝区和起居区，为您提供更多额外空间。
            </p>
          </div>

          <!-- 需要循环的 -->
          <div class="item" v-for="(value, i) of taofang" :key="i">
            <!-- 轮播图 -->

            <template>
              <swiper class="swiper" :options="swiperOption">
                <swiper-slide>
                  <img src="img/guest/suite_01_01.jpg" alt="" />
                </swiper-slide>
                <swiper-slide>
                  <img src="img/guest/suite_01_02.jpg" alt="" />
                </swiper-slide>
                <swiper-slide>
                  <img src="img/guest/suite_01_03.jpg" alt="" />
                </swiper-slide>
                <swiper-slide>
                  <img src="img/guest/suite_01_04.jpg" alt="" />
                </swiper-slide>
                <swiper-slide>
                  <img src="img/guest/suite_01_05.jpg" alt="" />
                </swiper-slide>

                <div class="swiper-pagination" slot="pagination"></div>
              </swiper>
            </template>

            <!-- 轮播图下方内容 -->
            <div class="item_b">
              <div>
                <h3>{{ value.title }}</h3>
              </div>
              <div>
                <span class="el-icon-eleme"></span
                ><span>{{ value.itema }}</span>
              </div>
              <div>
                <span class="el-icon-eleme"></span
                ><span>{{ value.itemb }}</span>
              </div>
              <div>
                <span class="el-icon-eleme"></span
                ><span>{{ value.itemc }}</span>
              </div>
              <div>
                <span @click="$router.push('/choose')">查看房价</span
                ><span>详情</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 设施部分 -->
    <div class="sheshi">
      <div class="ts_nav">
        <div class="ts_navone">
          <span>特色服务与设施</span>
          <span><a href="#">查看全部-></a></span>
        </div>
        <div class="ts_navtwo">
          <div>
            <img src="/img/guest/tubiao/wifi.png" alt="" />
            <span>标准 WI-FI</span>
          </div>
          <div>
            <img src="/img/guest/tubiao/baozhi.png" alt="" />
            <span>每日报纸</span>
          </div>
          <div>
            <img src="/img/guest/tubiao/shuiliao.png" alt="" />
            <span>水疗</span>
          </div>
          <div>
            <img src="/img/guest/tubiao/songcan.png" alt="" />
            <span>送餐服务</span>
          </div>
          <div>
            <img src="/img/guest/tubiao/libin.png" alt="" />
            <span>礼宾</span>
          </div>
          <div>
            <img src="/img/guest/tubiao/qinzi.png" alt="" />
            <span>亲子服务</span>
          </div>
          <div>
            <img src="/img/guest/tubiao/muyu.png" alt="" />
            <span>沐浴套装</span>
          </div>
        </div>
      </div>
    </div>

    <!-- 政策 -->
    <div class="zhengce">
      <div class="zc_left">
        <p>政策</p>
      </div>
      <div class="zc_right">
        <div class="zc_item" v-for="(value, i) of zhengce" :key="i">
          <div><img :src="`/img/guest/tubiao/${value.img}`" alt="" /></div>
          <div>
            <h4>{{ value.titlea }}</h4>
            <span>{{ value.titleb }}</span>
          </div>
        </div>
      </div>
    </div>

    <!-- 尾部 -->

    <div class="zstp_one"><img src="/img/guest/bg.png" alt="" /></div>
    <div class="zstp_two">
      <h2>室内设计</h2>
      <div class="zctp_item">
        <div class="zctp_item_left">
          <img src="/img/guest/onee.jpg" alt="" />
        </div>
        <div class="zctp_item_right">
          <p>挑高天花板</p>
          <span
            >从所有的客房走廊上都可以俯瞰中央以天窗采光的中庭，在这里，400
            只在中国传统文化中象征着爱情和梦想的不锈钢中国孔雀蛱蝶，在 20
            层高的巨型装饰墙上翩然起舞。</span
          >
        </div>
      </div>

      <div class="zctp_itemt_two">
        <div class="zctp_item_right">
          <p>挑高天花板</p>
          <span
            >从所有的客房走廊上都可以俯瞰中央以天窗采光的中庭，在这里，400
            只在中国传统文化中象征着爱情和梦想的不锈钢中国孔雀蛱蝶，在 20
            层高的巨型装饰墙上翩然起舞。</span
          >
        </div>
        <div class="zctp_item_left">
          <img src="/img/guest/twoo.jpg" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.css";

export default {
  //  name: 'swiper-example-space-between',
  //   title: 'Space between slides',
  components: {
    Swiper,
    SwiperSlide,
  },
  methods: {
    clubskip() {
      this.$router.push("/guestroom/clubroom");
    },
  },
  data() {
    return {
      swiperOption: {
        spaceBetween: 30,
        pagination: {
          el: ".swiper-pagination",
          type: "bullets",
          clickable: true,
        },
        loop: "true",
      },
      zhengce: [
        {
          img: "qinzi.png",
          titlea: "入住/退房时间",
          titleb: "入住时间: 下午 3:00 退房时间: 中午 12:00",
        },
        {
          img: "qinzi.png",
          titlea: "提前抵达和延迟退房",
          titleb:
            "如果您预计在清晨抵达，并希望立即入住您的客房，我们建议您预订前一晚的客房以确保即时入住。同样地，对于希望延迟退房的客人，建议您多预订一晚住宿，以确保您在离店前均可使用客房。如果您选择不额外预订住宿，我们将非常乐意为您保管行李，并向您开放健身中心以供您梳洗整装。",
        },
        {
          img: "qinzi.png",
          titlea: "信用卡",
          titleb:
            "美国运通卡、维萨卡、万事达卡、大来卡、JCB 卡、发现卡、中国银联",
        },
        {
          img: "qinzi.png",
          titlea: "家庭入住须知",
          titleb:
            "在客房居住空间允许的情况下，四季酒店对于与父母或监护人同住的 18 岁以下未成年宾客不收取额外费用。两位成人携两位 18 岁（含）以下未成年宾客入住两间房间可享受优惠房价，视供应情况而定。对于可与父母或监护人免费同住的未成年宾客的年龄限制在各酒店可能有所不同。如需预订客房或查询详情，请直接联系酒店。",
        },
      ],

      items: [
        {
          roomId: 1,
          img: "guest_04_01.jpg",
          title: "客房",
          itema: "1 张特大床或 2 张单人床, 1 张折叠床或 1 张婴儿床",
          itemb: "46 平方米（495 平方英尺）",
          itemc: "3 名成人，或 2 名成人和 1 名儿童",
        },
        {
          roomId: 2,
          img: "guest_04_02.jpg",
          title: "四季客房 ",
          itema: "1 张特大床或 2 张单人床, 1 张折叠床或 1 张婴儿床",
          itemb: "46 平方米（495 平方英尺）",
          itemc: "3 名成人，或 2 名成人和 1 名儿童",
        },
        {
          roomId: 3,
          img: "guest_04_03.jpg",
          title: "尊贵客房",
          itema: "1 张特大床或 2 张单人床, 1 张折叠床或 1 张婴儿床",
          itemb: "46 平方米（495 平方英尺）",
          itemc: "3 名成人，或 2 名成人和 1 名儿童",
        },
        {
          roomId: 4,
          img: "guest_04_04.jpg",
          title: "豪华客房",
          itema: "1 张特大床或 2 张单人床, 1 张折叠床或 1 张婴儿床",
          itemb: "46 平方米（495 平方英尺）",
          itemc: "3 名成人，或 2 名成人和 1 名儿童",
        },
      ],
      taofang: [
        {
          img: "suite_03_01.jpg",
          title: "皇家套房",
          itema: "2张特大床和2张双人床, 最多两张折叠床或三张婴儿床",
          itemb: "730 平方米（7,858 平方英尺）",
          itemc: "9 名成人，或 6 名成人和 3 名儿童",
        },
        {
          img: "suite_03_02.jpg",
          title: "主席套房",
          itema: "1 张特大床, 1 张婴儿床",
          itemb: "114 平方米（1,227 平方英尺）",
          itemc: "9 名成人，或 6 名成人和 3 名儿童",
        },
        {
          img: "suite_03_03.jpg",
          title: "北京套房",
          itema: "2张特大床和2张双人床, 最多两张折叠床或三张婴儿床",
          itemb: "730 平方米（7,858 平方英尺）",
          itemc: "9 名成人，或 6 名成人和 3 名儿童",
        },
        {
          img: "suite_03_04.jpg",
          title: "大使套房",
          itema: "2张特大床和2张双人床, 最多两张折叠床或三张婴儿床",
          itemb: "730 平方米（7,858 平方英尺）",
          itemc: "9 名成人，或 6 名成人和 3 名儿童",
        },
        {
          img: "suite_03_05.jpg",
          title: "露台套房",
          itema: "2张特大床和2张双人床, 最多两张折叠床或三张婴儿床",
          itemb: "730 平方米（7,858 平方英尺）",
          itemc: "9 名成人，或 6 名成人和 3 名儿童",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
// @import './base.scss';
.el-button--text {
  font-size: 30px;
  color: #7d7d7d;
}
.top {
  height: 150px;
  width: 100%;
  background-color: black;
  text-align: center;
  overflow: hidden;
  p {
    color: white;
    display: block;
    margin: 25px 0 25px 0;
    font-size: 16px;
  }
  h1 {
    color: white;
    font-size: 32px;
  }
}
.center {
  width: 80%;
  margin: 30px auto 0 auto;
  height: auto;
  // background-color: rosybrown;
  .one {
    height: 120px;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #cacaca;
    > div:nth-child(1) {
      padding-top: 20px;
      span {
        display: inline-block;
        padding: 20px 20px 20px 0;
        font-size: 12px;
        cursor: pointer;
      }
      :nth-child(1) {
        font-weight: bold;
      }

      :nth-child(1)::after {
        content: "|";
        margin-left: 30px;
      }
    }
    > div:nth-child(2) {
      padding: 10px;
      display: flex;

      text-align: center;
      height: 50px;
      ul {
        display: flex;
        align-items: center;
        flex-direction: column;
        > .tubiao :hover {
          color: black;
          font-weight: bold;
        }
        &:hover {
          font-size: 30px;
          font-weight: bold;
        }
        // border:1px solid black;
        span {
          font-size: 12px;
          padding-top: -10px;
        }
      }
    }
  }

  .two {
    margin-top: 30px;

    div:first-child {
      h3 {
        font-weight: bold;
        font-size: 16px;
      }
      p {
        margin: 20px 0 20px 0;
        font-size: 15px;
      }
    }
    // border: 1px solid rgb(105, 103, 103);
    .item {
      width: 46%;
      height: 520px;
      margin-top: 30px;
      float: left;
      margin-right: 30px;
      margin-left: 5px;
      border: 1px solid #7d7d7d;
    }

    .swiper {
      --swiper-theme-color: white;
      width: 100%;
      height: 50%;
      img {
        width: 100%;
      }
      // padding-top: 60px;
    }

    .item_b {
      padding: 20px;
      display: flex;
      justify-content: center;
      flex-direction: column;
      div {
        margin: 2%;
      }
      > div:last-child {
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
        cursor: pointer;
        span:first-child {
          display: inline-block;
          width: 48%;
          line-height: 40px;
          text-align: center;
          border: 1px solid black;
          background-color: black;
          color: white;
          letter-spacing: 5px;
          &:hover {
            background-color: white;
            color: black;
          }
        }
        span:last-child {
          display: inline-block;
          width: 48%;
          line-height: 40px;
          text-align: center;
          border: 1px solid black;
          background-color: white;
          color: black;
          letter-spacing: 10px;
          &:hover {
            background-color: black;
            color: white;
          }
        }
      }
    }
  }
}

.sheshi {
  width: 100%;
  height: 350px;
  margin: 80px auto;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
}
.ts_nav {
  width: 80%;
  height: 40%;
  // border: 1px solid red;
  margin: auto;
}
.ts_nav .ts_navone {
  display: flex;
  justify-content: space-between;
  span:nth-child(1) {
    font-size: 22px;
    letter-spacing: 3px;
  }
  span:nth-child(2) a {
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 6px;
    color: black;
    font-weight: bold;
  }
}
.ts_nav .ts_navtwo {
  display: flex;
  justify-content: space-between;
  // background-color: yellow;
  margin: 20px 0 0 0;
  div {
    // border: 1px solid red;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12%;

    img {
      width: 30%;
    }
    span {
      font-weight: bold;
      padding: 15px 0 0 0;
    }
  }
}

// 政策
.zhengce {
  margin-bottom: 40px;
  // border: 1px solid red;
  width: 80%;
  margin: auto;
  height: auto;
  display: flex;
  justify-content: space-between;
}
.zhengce .zc_item {
  border-bottom: 1px solid #d8d8d8;
}
.zhengce .zc_left {
  width: 30%;
  text-align: center;
  font-weight: bold;
}
.zhengce .zc_right {
  width: 60%;
  // background-color: yellow;
}
.zhengce .zc_right .zc_item {
  display: flex;
  justify-content: space-between;
  div:nth-child(1) {
    width: 8%;
    margin: 20px 0;
    img {
      width: 100%;
    }
  }
  div:nth-child(2) {
    margin: 20px 0 0 25px;
    width: 88%;
    // background-color: red;
    h4 {
      font-size: 15px;
    }
    span {
      display: inline-block;
      margin: 15px 0;
      line-height: 1.7em;
    }
  }
}

// 展示图片

.zstp_one {
  margin-top: 80px;
  width: 100%;
  img {
    width: 100%;
  }
}
.zstp_two {
  width: 100%;
  height: auto;
  background-color: #000000;
  overflow: hidden;
  h2 {
    color: white;
    margin-top: 50px;
    text-align: center;
    font-size: 26px;
    letter-spacing: 10px;
  }
}
.zctp_item {
  width: 70%;
  height: auto;
  // border: 2px solid red;
  margin: 30px auto 0 auto;
  color: white;
  display: flex;
  justify-content: center;
  .zctp_item_left {
    width: 45%;
    margin-right: 2%;
    img {
      width: 100%;
    }
  }
  .zctp_item_right {
    width: 45%;
    margin-left: 2%;
    p {
      font-weight: bold;
      letter-spacing: 5px;
    }
    span {
      display: inline-block;
      line-height: 20px;
      margin-top: 6%;
    }
  }
}
.zctp_itemt_two {
  width: 70%;
  height: auto;
  // border: 2px solid red;
  margin: 30px auto 0 auto;
  color: white;
  display: flex;
  justify-content: center;
  .zctp_item_left {
    width: 45%;
    margin-left: 2%;
    img {
      width: 100%;
    }
  }
  .zctp_item_right {
    width: 45%;
    margin-right: 2%;
    p {
      font-weight: bold;
      letter-spacing: 5px;
      float: right;
    }
    span {
      display: inline-block;
      line-height: 20px;
      margin-top: 6%;
      text-align: right;
    }
  }
}
</style>
<style>
body {
  margin: 0;
  padding: 0;
}
</style>
<style lang="scss" scoped></style>
